<template>
  <div id="app">
    <el-container>
      <el-header>
        <TheHeader></TheHeader>
      </el-header>
      <el-container style="height:550px">
        <el-aside width="150px">
          <TheAside @print-resume="printResume"></TheAside>          
        </el-aside>
        <el-main>
          <div class="resume">
            <resume1 ref="resume_print"></resume1>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import TheHeader from "@/components/commons/TheHeader.vue";
import TheAside from "@/components/commons/TheAside.vue";
import resume1 from "@/components/resume/resume1.vue";

export default {
  name: "app",
  components: {
    TheHeader,
    TheAside,
    resume1
  },
  methods: {
    printResume(){
      this.$refs.resume_print.printResume();
    }
  },
};
</script>

<style lang="scss" scoped>
#app {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
.el-header {
  background-color: #ffffff;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #ffffff;
  color: #333;
}

.el-main {
  background-color: #e9eef3;
  color: #333;

  .resume {
    background-color: #ffffff;
    width: 794px;
    height: 1080px;
    margin: 0 auto;
  }
}
</style>
